.todo-container {
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  max-width: 600px;
  margin: 0 auto;
}

.todo-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

// 选项卡切换
.todo-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 15px;
}

.todo-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #666;
  position: relative;
  cursor: pointer;
  
  &.active {
    color: #1890ff;
    font-weight: 500;
    
    &:after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 20%;
      width: 60%;
      height: 2px;
      background-color: #1890ff;
    }
  }
}

// 日期选择器
.todo-date-selector {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.todo-date {
  font-size: 14px;
  color: #1890ff;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: rgba(24, 144, 255, 0.1);
  cursor: pointer;
}

.todo-today-btn {
  font-size: 13px;
  color: #1890ff;
  margin-left: 10px;
  cursor: pointer;
}

.todo-date-picker {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.todo-date-option {
  font-size: 13px;
  color: #666;
  padding: 4px 10px;
  margin: 5px;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  
  &.active {
    color: #fff;
    background-color: #1890ff;
  }
}

// 输入框样式
.todo-input-box {
  margin-bottom: 15px;
  
  .todo-input {
    width: 100%;
    height: 42px;
    border: 1px solid #e0e3e9;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    padding: 0 12px;
    box-sizing: border-box;
  }
}

// 操作按钮
.todo-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.todo-action-btn {
  font-size: 13px;
  color: #1890ff;
  padding: 6px 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background-color: rgba(24, 144, 255, 0.05);
  cursor: pointer;
  
  &:hover {
    background-color: rgba(24, 144, 255, 0.1);
  }
}

// 待办列表
.todo-list {
  margin-bottom: 15px;
}

.todo-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
}

.todo-select-all {
  display: flex;
  align-items: center;
}

.todo-select-all-text {
  font-size: 14px;
  color: #666;
  margin-left: 5px;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
  border-radius: 4px;
  padding: 12px 8px;
  
  &.todo-completed {
    background-color: #f6f6f6;
    
    .todo-text {
      text-decoration: line-through;
      color: #999;
    }
  }
}

.todo-item-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.todo-checkbox {
  margin-right: 10px;
}

.todo-text {
  font-size: 14px;
  color: #333;
  word-break: break-all;
  transition: text-decoration 0.3s ease, color 0.3s ease;
}

.todo-delete {
  color: #ff4d4f;
  font-size: 12px;
  padding: 3px 6px;
  background-color: #fff0f0;
  border-radius: 4px;
  cursor: pointer;
}

.todo-empty {
  text-align: center;
  color: #999;
  padding: 30px 0;
  font-size: 14px;
}

// 页脚区域
.todo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.todo-stats {
  font-size: 13px;
  color: #666;
}

.todo-actions-group {
  display: flex;
  gap: 10px;
}

.todo-clear-completed {
  font-size: 13px;
  color: #fff;
  background-color: #52c41a;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.todo-clear-all {
  font-size: 13px;
  color: #fff;
  background-color: #ff4d4f;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  
  &:hover {
    background-color: #ff7875;
  }
}

// 模板相关
.todo-template-section {
  margin-bottom: 15px;
}

.todo-template-list {
  margin-top: 15px;
}

.todo-template-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  background-color: #f9f9f9;
  border-left: 3px solid #52c41a;
}

.todo-template-text {
  font-size: 14px;
  color: #333;
  flex: 1;
}

.todo-template-actions {
  display: flex;
  gap: 10px;
}

.todo-template-apply {
  font-size: 12px;
  color: #1890ff;
  padding: 3px 8px;
  border-radius: 3px;
  background-color: rgba(24, 144, 255, 0.1);
  cursor: pointer;
}

.todo-template-delete {
  font-size: 12px;
  color: #ff4d4f;
  padding: 3px 8px;
  border-radius: 3px;
  background-color: rgba(255, 77, 79, 0.1);
  cursor: pointer;
}

// 历史记录
.todo-history-section {
  margin-bottom: 15px;
}

.todo-history-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
  display: block;
}

.todo-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  background-color: #f9f9f9;
  border-left: 3px solid #1890ff;
  cursor: pointer;
  
  &:hover {
    background-color: #f0f7ff;
  }
}

.todo-history-date {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  cursor: pointer;
}

.todo-history-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.todo-history-completion {
  font-size: 13px;
  color: #666;
}

.todo-history-delete {
  font-size: 12px;
  color: #ff4d4f;
  padding: 3px 8px;
  border-radius: 3px;
  background-color: rgba(255, 77, 79, 0.1);
  cursor: pointer;
  
  &:hover {
    background-color: rgba(255, 77, 79, 0.2);
  }
} 